﻿<!DOCTYPE>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>	
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	//获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
	pageContext.setAttribute("path", path);
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${basePath}css/style.css" />
<script type="text/javascript" src="${basePath}js/jquery-3.2.1.js"></script>
<title>个人简历</title>
<meta content="description" name="description">
<meta content="keywords" name="keywords">
</head>
<body>
<%
String code = (String)request.getAttribute("code");
String msg = (String)request.getAttribute("msg");
if(null==code || "0"!=code){
	%>
	<script type="text/javascript">
	alert('${requestScope.msg}');
	</script>
	<%
}
%>
  	<div id="previewWrapper">
        <div class="preview_header">
            <h1 title="简历">${requestScope.resume.name}的简历</h1>
                    </div><!--end .preview_header-->

        <div class="preview_content">
            <div class="profile_box" id="basicInfo">
                <h2>基本信息</h2>
                <div class="basicShow">
                   <span>
                   ${requestScope.resume.name} | 
                   ${requestScope.resume.educationalBackground} | 
                   ${requestScope.resume.desiredLocationDesc}<br>
            		<br>
            		${requestScope.resume.telephoneNum} | 
            		${requestScope.resume.email}<br>
            		</span>
                </div><!--end .basicShow-->
            </div><!--end #basicInfo-->
			<c:if test="${requestScope.resume!=null}">
				<div class="profile_box" id="expectJob">
	                <h2>期望工作</h2>
	                <div class="expectShow">
	                	${requestScope.resume.desiredLocationDesc}，
	                	月薪${requestScope.resume.desiredSalayDesc}，
	                	${requestScope.resume.desiredWorkDesc}
	                </div><!--end .expectShow-->
	            </div><!--end #expectJob-->
			</c:if>		
			<c:if test="${requestScope.we!=null}">
				 <div class="profile_box" id="workExperience">
	                <h2>工作经历</h2>
	                <div class="experienceShow">
	                  <ul class="wlist clearfix">
	                  	  <li class="clear">
            				<span class="c9">
            				<fmt:formatDate value="${requestScope.we.startTime}" pattern="yyyy-MM-dd"/>
            				-
            				<fmt:formatDate value="${requestScope.we.endTime}" pattern="yyyy-MM-dd"/>
            				</span>
	           					<div>
	           						<!-- <img width="56" height="56" alt="" src=""> -->
	           						<h3>${requestScope.we.duty} </h3>
	           						<h4>${requestScope.we.company}</h4>
	           					</div>
	           				</li>
	           			</ul>
	                </div><!--end .experienceShow-->
	            </div><!--end #workExperience-->
			</c:if>
			<c:if test="${requestScope.pe!=null}">
				<div class="profile_box" id="projectExperience">
	                <h2>项目经验</h2>
	                <div class="projectShow">
	                  <ul class="plist clearfix">
	                  	 <li class="noborder">
	            			<div class="projectList">
		            			<div class="f16 mb10">${requestScope.pe.name}，${requestScope.pe.duty}
		            				<span class="c9">
		            				<fmt:formatDate value="${requestScope.pe.startTime}" pattern="yyyy-MM-dd"/>
		            				-
		            				<fmt:formatDate value="${requestScope.pe.endTime}" pattern="yyyy-MM-dd"/>
		            				</span>
		            			</div>
		            			<div class="dl1"></div>
		            		</div>
	            		</li>
	            	  </ul>
	                </div><!--end .projectShow-->
	            </div><!--end #projectExperience-->
			</c:if>
		</div><!--end .preview_content-->
  	</div><!--end #previewWrapper-->
</body>
</html>